//
//  LMCommonCollectionViewCell.m
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import "THBaseCollectionViewCell.h"
#import "THBaseEntity.h"
@interface THBaseCollectionViewCell ()

@end

@implementation THBaseCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        if ([self respondsToSelector:@selector(setupUI)]) {
            [self setupUI];
        }
        if ([self respondsToSelector:@selector(configViews)]) {
            [self configViews];
        }
        if ([self respondsToSelector:@selector(setupFrames)]) {
          [self setupFrames];
        }
    }
    return self;
}
#pragma mark 添加/配置子视图
/// 添加子控件
- (void)setupUI
{
    //子类实现
}
/// 配置子控件
- (void)configViews
{
    //子类实现
}
/// 布局子控件
- (void)setupFrames
{
    //子类实现
}

#pragma mark set entity
- (void)configureCellWithEntity:(THBaseEntity *)entity{}

+ (NSString*)cellIdentifier {
    return [[NSString alloc] initWithFormat:@"%@",NSStringFromClass(self)];
}

@end
